package com.lzh.service.impl;

import com.lzh.pojo.College;
import com.lzh.mapper.CollegeMapper;
import com.lzh.service.CollegeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Reborn
 * @since 2020-06-15
 */
@Service
public class CollegeServiceImpl  implements CollegeService {

    @Autowired
    CollegeMapper collegeMapper;

    @Override
    public List<College> QueryCollege() {
        return collegeMapper.selectList(null);
    }

    @Override
    public College QueryCollegeOne(int id) {
        return collegeMapper.selectById(id);
    }
}
